import socket
import threading
import time


def socket_process():
    pass


if __name__ == '__main__':
    socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    socket.connect(("192.168.22.29", 8080))
    while True:
        data = socket.recv()
        if not data:
            print("服务器断开连接")
            break
        print(data.decode("gbk"))
        socket.send("我是客户端1")
    socket.close()
